#include"bsp_efm.h"
void bsp_efm_read_8(uint8_t *readbuf, uint32_t addr, uint32_t len)
{
    uint8_t * desdata;
    desdata = (uint8_t*)addr;
    for(uint32_t i=0;i<len;i++)
    {
        readbuf[i] = desdata[i];
    }
}
    
void bsp_efm_read_16(uint16_t *readbuf, uint32_t addr, uint32_t len)
{
    uint16_t * desdata;
    desdata = (uint16_t*)addr;
    for(uint32_t i=0;i<len;i++)
    {
        readbuf[i] = desdata[i];
    }
}

void bsp_efm_read_32(uint32_t *readbuf, uint32_t addr, uint32_t len)
{
    uint32_t * desdata;
    desdata = (uint32_t*)addr;
    for(uint32_t i=0;i<len;i++)
    {
        readbuf[i] = desdata[i];
    }
}


